package bd;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * @author Camilo
 */
public class ConBdSqlS {

  public static Connection getConexao() throws SQLException {
    try {
      Class.forName("net.sourceforge.jtds.jdbc.Driver");
//      return DriverManager.getConnection("jdbc:postgresql://localhost:5432/postgres","camilo","password");
      return DriverManager.getConnection("jdbc:jtds:sqlserver://192.168.0.1:1433/CashSuper;"
              + "instance=SQLEXPRESS;user=sa;password=_ellus#35587_;");
    } catch (ClassNotFoundException e) {
      throw new SQLException(e.getMessage());
    }
  }
}
